package com.lq.ecoldchain.ui.mine.recommand

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/3 0003  16:28
*function by lq
*/
val recommendKodeinModule = Kodein.Module("Recommend_Kodein_Module"){
    bind<RecommendViewModel>() with scoped(AndroidLifecycleScope).singleton {
        RecommendViewModel()
    }
    bind<RecommendDelegate>() with scoped(AndroidLifecycleScope).singleton {
        RecommendDelegate(instance())
    }
}